<%--
  Created by IntelliJ IDEA.
  User: linzhi
  Date: 2017/8/23
  Time: 16:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/top.jsp"%>
<html>
<head>
    <title>moreConditions</title>
    <script src="${path}/tools/jquery-1.8.2.min.js"></script>
    <script>
        $(function () {
            var condition = {
                pageNum:10,
                name:"Jack"
            };
            var condition2 = {
                gender:"男",
                age:34
            };

            $.ajax({
                url: path + '/moreConditions/getData.action',
                type: 'post',
                data: {
                    condition:JSON.stringify([condition,condition2])
                },
                dataType: 'json',
                success: function (data) {
                    data = data?data:'no data';

                    $("#div1").html('<pre>'+JSON.stringify(data, null, ' ')+'</pre>');
                }
            });
        });
    </script>
</head>
<body>
    <div id="div1"></div>
</body>
</html>
